﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EF
{
    public class Post
    {
        [Key]
        [Required]
        public int PostId { get; set; }

        [Required]
        [StringLength(36)]
        public string Title { get; set; }

        [StringLength(2000)]
        public string Content { get; set; }

        public int BlogId { get; set; }

        public virtual Blog BlogInfo { get; set; }
    }
}
